package com.example.demo.service;

import java.util.Map;

import com.example.demo.entity.Coupon;

public interface CouponService {
    Coupon createCoupon(Coupon coupon);
    
    Coupon getCouponById(Integer id);
    
    Coupon getCouponByName(String name);
    
    boolean updateCoupon(Coupon coupon);
    
    boolean updateCouponStatus(Integer id, Integer status);
    
    Map<String, Object> getCouponList(Integer page, Integer limit, String keyword);
    
    boolean deleteCoupon(Integer id);
}
